From: Niklas Laxström Date: Tue, 3 Aug 2010 20:39:35 +0000 (+0000) Subject: Follow up to r69185: add documentation for wfUILang() X-Git-Tag: 1.31.0-rc.0~35752 X-Git-Url: http://git.cyclocoop.org/%22.%24info%5B?a=commitdiff_plain;h=3481db60c34eaf7e1f789dfcccf81db07b435fb8;p=lhc%2Fweb%2Fwiklou.git Follow up to r69185: add documentation for wfUILang() --- diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 8341be407d..c1ed33fa4b 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -563,6 +563,13 @@ function wfGetLangObj( $langcode = false ) { return $wgContLang; } +/** + * Use this instead of $wgContLang, when working with user interface. + * User interface is currently hard coded according to wiki content language + * in many ways, especially regarding to text direction. There is lots stuff + * to fix, hence this function to keep the old behaviour unless the global + * $wgBetterDirectionality is enabled (or removed when everything works). + */ function wfUILang() { global $wgBetterDirectionality; return wfGetLangObj( $wgBetterDirectionality ? false: true );